// 状态机配置文件

import Vue from "vue";
import Vuex from "vuex";
import count from "./count";
import category from "./category";
import goodsModule from "./goodsModule";
import user from "./user";
import { createVuexPersistedState } from "vue-persistedstate";
Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    count: count, //键名：模块名，键值：模块具体对象配置
    category,
    goodsModule,
    user,
  },
  plugins: [
    createVuexPersistedState({
      key: "vue-client-2304",
    }),
  ],
});
export default store;
